/*
 * RecordMediaPlayer.h
 *
 *  Created on: 2018年8月2日
 *      Author: zhengboyuan
 */

#ifndef RECORDMEDIAPLAYER_H_
#define RECORDMEDIAPLAYER_H_

#include "MediaStreamPlayer.h"

class RecordMediaPlayer: public MediaStreamPlayer
{
public:
    RecordMediaPlayer();
    virtual ~RecordMediaPlayer();

    bool Open(nvs::NetVideoSystem* system, const nvs::RecordItem& rec);

    const nvs::RecordItem& getRecord() const;

    virtual bool CanSeek();

    virtual std::string GetUrl();

	virtual int64_t GetTime();
	
	virtual bool Seek(int64_t pts);

	int64_t GetDuration();

protected:
    nvs::RecordItem m_rec;
	int m_duration;

};

#endif /* RECORDMEDIAPLAYER_H_ */
